<!--添加栏目-->
<div class="dialog_content col_tab">
<form id="info_form" action="{:U('Youpku/collect')}" method="post">

	<div class="J_panes">
        <div class="content_list pad_10">
	<table width="100%" class="table_form">
		<tr> 
			<th width="100">{:L('item_cate_parent')} :</th>
			<td>
				<select class="J_cate_select mr10" data-pid="0" data-uri="{:U('ItemsCate/ajax_getchilds')}" data-selected="{$spid}"></select>
				<input type="hidden" name="cid" id="J_cate_id" />
			</td>
			<input type="hidden" name="id" value="{$id}" />
		</tr>
		 
	</table>
	</div>
	
	 
        </div>
	</form>
</div>
<script>
$(function(){ 
	$.formValidator.initConfig({formid:"info_form",autotip:true});
	$('#info_form').ajaxForm({success:complate, dataType:'json'});
	function complate(result){
		if(result.status == 1){
			$.dialog.get(result.dialog).close();
			$.itaoke.tip({content:result.msg});
			window.location.reload();
		} else {
			$.itaoke.tip({content:result.msg, icon:'alert'});
		}
	}
	//分类联动
	$('.J_cate_select').cate_select();
});
</script>